import request from '@/sheep/request';

export default {
    // 获取企业信息
    list: (params) =>
      request({
        url: `/app_api.php?t=study&s=company&op=getTrainingIndex`,
        method: 'POST',
        data: params
    }),
    // 获取企业信息
    detail: (params) =>
      request({
        url: `/app_api.php?t=study&s=company&op=getTrainingInfo`,
        method: 'POST',
        data: params
    }),
    add: (params) =>
      request({
        url: `/app_api.php?t=study&s=company&op=getTrainingEditForm`,
        method: 'POST',
        data: params
    }),
    update: (params) =>
      request({
        url: `/app_api.php?t=study&s=company&op=getTrainingEditForm`,
        method: 'POST',
        data: params
    }),
    delete: (params) =>
      request({
        url: `/app_api.php?t=study&s=company&op=getTrainingDel`,
        method: 'POST',
        data: params
    }),
};